#include<stdio.h>

int main()
{
    int a,n,num=0;
    printf("Please enter a and n\n");
    scanf("%d %d",&a,&n);
    printf("a=%d,n=%d\n",a,n);
    for(int i=1;i<=n;i++)
    {
        num+=a;
        a+=a*10;
    }
    printf("a+aa+...=%d\n",num);
    return 0;
}